package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.ProductAttrValueEntity;
import com.atguigu.gulimall.product.vo.AttrRespVo;
import com.atguigu.gulimall.product.vo.AttrVo;
import com.baomidou.mybatisplus.extension.service.IService;

import com.atguigu.gulimall.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author yp
 * @email sunlightcs@gmail.com
 * @date 2021-07-05 20:18:21
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attrVo);

    PageUtils findAttrList(Map<String, Object> params, Long catelogId, String attrType);

    AttrRespVo getAttrVo(Long attrId);

    void updateAttr(AttrVo attrVo);

    List<AttrEntity> getAttrListByGroupId(Long attrGroupId);

    List<ProductAttrValueEntity> listforSpu(Long spuId);

    List<Long> selectSearchAttrIds(List<Long> attrIds);
}

